<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="bean" value="${maquinaria}"/>
<c:set var="mensaje" value="${mensaje}"/>
<div>
    <%@ include file="/WEB-INF/views/session.jsp" %>
</div>
<div id="area">
	<div class="content" id="work">
		<p>&nbsp;</p>
    <center>	
		  <h2>Detalle de Maquinaria</h2>
	      <table width="331" border="0">
	        <tr>
              <td width="101"></td>
              <td width="199"><img src="<c:url value="/resources/images/${bean.imagen}.jpg" />" width="133" height="168"></td>
            </tr>
            <tr>
              <td width="101">&nbsp;</td>
              <td width="199">&nbsp;</td>
            </tr>
            <tr>
              <td width="101">Codigo</td>
              <td width="199"><c:out value="${bean.codigo}"/></td>
            </tr>
            <tr>
              <td width="101">Placa</td>
              <td width="199"><c:out value="${bean.placa}"/></td>
            </tr>
            <tr>
              <td>Descripcion</td>
              <td><c:out value="${bean.descripcion}"/></td>
            </tr>
            <tr>
              <td>Precio</td>
              <td><c:out value="${bean.precio}"/></td>
            </tr>
            <tr>
              <td>Estado</td>
              <td><c:out value="${bean.estado}"/></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><a href="editar.gsp?code=${bean.codigo}"><c:out value="Editar" /></a>
                  <a href="eliminar.gsp?code=${bean.codigo}"><c:out value="Eliminar" /></a>
                  <a href="agregarAlPedido.htm?code=${bean.codigo}"><c:out value="Agregar al pedido" /></a>
              </td> 
            </tr>
          </table>
          <div><h2><c:out value="${mensaje}"/></h2></div>
      </center>
      <p>&nbsp;</p>
	</div>
	<div class="sidenav" id="nave">
		<%@ include file="/WEB-INF/views/menu.jsp"%>
		<p>&nbsp;</p>
	</div>
</div>